<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Joomla!2.5的文章参数调用</title>
<link rel="stylesheet" href="../css/reset.css" type="text/css" />
<link rel="stylesheet" href="../css/prettify.css" type="text/css" />
<script type="text/javascript" src="../js/prettify.js"></script>
</head>

<body onload="prettyPrint()">
<h1>Joomla! 2.5 的文章参数调用</h1>
  <h3>Joomla! 2.5 文章列表页面返回对象：</h3>
  <pre class="prettyprint linenums">
Array
(
    [0] => stdClass Object
        (
            [id] => 58
            [title] => 文章的标题
            [alias] => 文章的别名
            [title_alias] => 
            [introtext] => 文章的正文
            [checked_out] => 0
            [checked_out_time] => 0000-00-00 00:00:00
            [catid] => 13
            [created] => 2012-02-09 12:56:29
            [created_by] => 1
            [created_by_alias] => 
            [modified] => 2012-02-09 12:56:29
            [modified_by] => 0
            [modified_by_name] => 
            [publish_up] => 2012-02-09 12:56:29
            [publish_down] => 0000-00-00 00:00:00
            [images] => {"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}
            [urls] => {"urla":null,"urlatext":"","targeta":"","urlb":null,"urlbtext":"","targetb":"","urlc":null,"urlctext":"","targetc":""}
            [attribs] => {"show_title":"","link_titles":"","show_intro":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}
            [metadata] => {"robots":"","author":"","rights":"","xreference":""}
            [metakey] => 
            [metadesc] => 
            [access] => 1
            [hits] => 5
            [xreference] => 
            [featured] => 0
            [readmore] => 0
            [state] => 1
            [category_title] => 企业新闻
            [category_route] => news/news
            [category_access] => 1
            [category_alias] => news
            [author] => Super User
            [author_email] => bubujie@qq.com
            [contactid] => 
            [parent_title] => 新闻中心
            [parent_id] => 8
            [parent_route] => news
            [parent_alias] => news
            [rating] => 
            [rating_count] => 
            [published] => 1
            [parents_published] => 1
            [alternative_readmore] => 
            [layout] => 
            [params] => JRegistry Object
                (
                    [data:protected] => stdClass Object
                        (
                            [article_layout] => _:default
                            [show_title] => 1
                            [link_titles] => 1
                            [show_intro] => 1
                            [show_category] => 1
                            [link_category] => 1
                            [show_parent_category] => 0
                            [link_parent_category] => 0
                            [show_author] => 1
                            [link_author] => 0
                            [show_create_date] => 0
                            [show_modify_date] => 0
                            [show_publish_date] => 1
                            [show_item_navigation] => 1
                            [show_vote] => 1
                            [show_readmore] => 1
                            [show_readmore_title] => 1
                            [readmore_limit] => 100
                            [show_icons] => 1
                            [show_print_icon] => 1
                            [show_email_icon] => 1
                            [show_hits] => 1
                            [show_noauth] => 0
                            [urls_position] => 0
                            [show_publishing_options] => 1
                            [show_article_options] => 1
                            [show_urls_images_frontend] => 0
                            [show_urls_images_backend] => 1
                            [targeta] => 0
                            [targetb] => 0
                            [targetc] => 0
                            [float_intro] => left
                            [float_fulltext] => left
                            [category_layout] => _:default
                            [show_category_title] => 0
                            [show_description] => 0
                            [show_description_image] => 1
                            [maxLevel] => 1
                            [show_empty_categories] => 0
                            [show_no_articles] => 1
                            [show_subcat_desc] => 1
                            [show_cat_num_articles] => 0
                            [show_base_description] => 1
                            [maxLevelcat] => -1
                            [show_empty_categories_cat] => 0
                            [show_subcat_desc_cat] => 1
                            [show_cat_num_articles_cat] => 1
                            [num_leading_articles] => 1
                            [num_intro_articles] => 3
                            [num_columns] => 3
                            [num_links] => 0
                            [multi_column_order] => 1
                            [show_subcategory_content] => 0
                            [show_pagination_limit] => 1
                            [filter_field] => hide
                            [show_headings] => 1
                            [list_show_date] => 0
                            [date_format] => 
                            [list_show_hits] => 1
                            [list_show_author] => 1
                            [orderby_pri] => order
                            [orderby_sec] => front
                            [order_date] => published
                            [show_pagination] => 2
                            [show_pagination_results] => 1
                            [show_feed_link] => 1
                            [feed_summary] => 0
                            [featured_categories] => Array( [0] => )
                            [layout_type] => blog
                            [menu_text] => 1
                            [show_page_heading] => 1
                            [secure] => 0
                            [page_title] => 首页
                            [page_description] => 
                            [page_rights] => 
                            [robots] => 
                            [page_heading] => 首页
                            [access-view] => 1
                        )
                )
            [displayDate] => 2012-02-09 12:56:29
            [slug] => 58:步步街网络服务中已做好向新版本内核迁移的准备
            [catslug] => 13:news
            [link] => /j25/index.php/news-center/13-news/58-example.html
        )

    [1] => stdClass Object
        (        )

    [2] => stdClass Object
        (        )
)

</pre>
<hr />
<h3>Joomla! 2.5 文章正文页面返回对象：</h3>
  <pre class="prettyprint linenums">
stdClass Object
(
    [id] => 60
    [asset_id] => 110
    [title] => 步步街专用版 Joomla! 归档
    [alias] => 步步街专用版-joomla-归档
    [title_alias] => 
    [introtext] => 文章简介
    [fulltext] => 
    [state] => 1
    [mask] => 0
    [catid] => 13
    [created] => 2012-02-09 12:57:48
    [created_by] => 1
    [created_by_alias] => 
    [modified] => 2012-02-09 12:57:48
    [modified_by] => 0
    [checked_out] => 1
    [checked_out_time] => 2012-02-10 02:54:37
    [publish_up] => 2012-02-09 12:57:48
    [publish_down] => 0000-00-00 00:00:00
    [images] => {"image_intro":"","float_intro":"","image_intro_alt":"","image_intro_caption":"","image_fulltext":"","float_fulltext":"","image_fulltext_alt":"","image_fulltext_caption":""}
    [urls] => {"urla":null,"urlatext":"","targeta":"","urlb":null,"urlbtext":"","targetb":"","urlc":null,"urlctext":"","targetc":""}
    [attribs] => {"show_title":"","link_titles":"","show_intro":"","show_category":"","link_category":"","show_parent_category":"","link_parent_category":"","show_author":"","link_author":"","show_create_date":"","show_modify_date":"","show_publish_date":"","show_item_navigation":"","show_icons":"","show_print_icon":"","show_email_icon":"","show_vote":"","show_hits":"","show_noauth":"","urls_position":"","alternative_readmore":"","article_layout":"","show_publishing_options":"","show_article_options":"","show_urls_images_backend":"","show_urls_images_frontend":""}
    [version] => 1
    [parentid] => 0
    [ordering] => 0
    [metakey] => 
    [metadesc] => 
    [access] => 1
    [hits] => 4
    [metadata] => JRegistry Object
        (
            [data:protected] => stdClass Object
                (
                    [robots] => 
                    [author] => 
                    [rights] => 
                    [xreference] => 
                )

        )

    [featured] => 0
    [language] => *
    [xreference] => 
    [category_title] => 企业新闻
    [category_alias] => news
    [category_access] => 1
    [author] => Super User
    [contactid] => 
    [parent_title] => 新闻中心
    [parent_id] => 8
    [parent_route] => news
    [parent_alias] => news
    [rating] => 
    [rating_count] => 
    [params] => JRegistry Object
        (
            [data:protected] => stdClass Object
                (
                    [article_layout] => _:default
                    [show_title] => 1
                    [link_titles] => 1
                    [show_intro] => 1
                    [show_category] => 1
                    [link_category] => 1
                    [show_parent_category] => 0
                    [link_parent_category] => 0
                    [show_author] => 1
                    [link_author] => 0
                    [show_create_date] => 0
                    [show_modify_date] => 0
                    [show_publish_date] => 1
                    [show_item_navigation] => 1
                    [show_vote] => 1
                    [show_readmore] => 1
                    [show_readmore_title] => 1
                    [readmore_limit] => 100
                    [show_icons] => 1
                    [show_print_icon] => 1
                    [show_email_icon] => 1
                    [show_hits] => 1
                    [show_noauth] => 0
                    [urls_position] => 0
                    [show_publishing_options] => 1
                    [show_article_options] => 1
                    [show_urls_images_frontend] => 0
                    [show_urls_images_backend] => 1
                    [targeta] => 0
                    [targetb] => 0
                    [targetc] => 0
                    [float_intro] => left
                    [float_fulltext] => left
                    [category_layout] => _:default
                    [show_category_title] => 0
                    [show_description] => 0
                    [show_description_image] => 1
                    [maxLevel] => 1
                    [show_empty_categories] => 0
                    [show_no_articles] => 1
                    [show_subcat_desc] => 1
                    [show_cat_num_articles] => 0
                    [show_base_description] => 1
                    [maxLevelcat] => -1
                    [show_empty_categories_cat] => 0
                    [show_subcat_desc_cat] => 1
                    [show_cat_num_articles_cat] => 1
                    [num_leading_articles] => 1
                    [num_intro_articles] => 4
                    [num_columns] => 2
                    [num_links] => 4
                    [multi_column_order] => 0
                    [show_subcategory_content] => 0
                    [show_pagination_limit] => 1
                    [filter_field] => hide
                    [show_headings] => 1
                    [list_show_date] => 0
                    [date_format] => 
                    [list_show_hits] => 1
                    [list_show_author] => 1
                    [orderby_pri] => order
                    [orderby_sec] => rdate
                    [order_date] => published
                    [show_pagination] => 2
                    [show_pagination_results] => 1
                    [show_feed_link] => 1
                    [feed_summary] => 0
                    [display_num] => 10
                    [menu_text] => 1
                    [show_page_heading] => 0
                    [secure] => 0
                    [page_title] => 新闻中心
                    [page_description] => 
                    [page_rights] => 
                    [robots] => 
                    [access-view] => 1
                )

        )

    [slug] => 60:步步街专用版-joomla-归档
    [catslug] => 13:news
    [parent_slug] => 8:news
    [readmore_link] => /j25/index.php/news-center/13-news/60-bubujie-joomla.html
    [text] => 文章正文
    [event] => stdClass Object
        (
            [afterDisplayTitle] => 
            [beforeDisplayContent] => 用户评价等等文章之前的内容
            [afterDisplayContent] => 
        )

    [prev] => 
    [next] => /j25/index.php/news-center/13-news/58-步步街网络服务中已做好向新版本内核迁移的准备
    [pagination] => 导航代码(上页-下页)
    [paginationposition] => 1
    [paginationrelative] => 0
)

</pre>
  <hr />
  <h3>xxx：</h3>
  <pre class="prettyprint linenums">

</pre>
  <h3>xxx：</h3>
  <pre class="prettyprint linenums">

</pre>
  <hr />
</body>
</html>
